﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using GodProject.peoples;

namespace WebGodServer.Database
{
  public class SearchQuery
  {

    public string ChildName { get; set; }

    public QuerySex ChildSex { get; set; }

    public Interval<int> ChildAge { get; set; }

    public Interval<double> AverageMark { get; set; }

    public string ParentName { get; set; }

    public Interval<int> ParentAge { get; set; }

    public SearchQuery()
    {
      ChildName = string.Empty;
      ParentName = string.Empty;
      ChildSex = QuerySex.All;
    }

    public class Interval<T>
    {
      public T From { get; set; }

      public T To { get; set; }
    }

    public enum QuerySex
    {
      Male, Female, All
    }
  }
}
